package com.itheima.pattern.adapter.object_adapter;

// 测试类
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();

        SDCard sdCard = new SDCardImpl();
        String msg = computer.readSD(sdCard);
        System.out.println(msg);

        System.out.println("------------");

        TFCard tfCard = new TFCardImpl();

        SDAdapterTF adapter = new SDAdapterTF(tfCard);
        String msg1 = computer.readSD(adapter);
        System.out.println(msg1);
    }
}
